A = eval(input())
B = eval(input())
print(A+B)
print((A+B)/2)
